import axios from 'axios';
export const baseUrl = 'http://39.103.216.202:4000';
//axios 的实例及拦截器配置
const axiosInstance = axios.create({
  baseURL: baseUrl,
});
axiosInstance.interceptors.response.use(
  (res) => res.data,
  (err) => {
    alert(err, '网络错误');
  }
);
// 播放模式
export const playMode = {
  sequence: 0,
  loop: 1,
  random: 2,
};
export { axiosInstance };
